package com.fudan.cfg.trans;

import java.io.Serializable;
import java.util.Map;

public class TargetNode implements Serializable{
	private String name;
	private String by;
	private String role;
	private String as;

	public static TargetNode build(Map<String,Object> map) {
		TargetNode targetNode = new TargetNode();
		targetNode.setName((String) map.get("name"));
		targetNode.setBy((String) map.get("by"));
		targetNode.setRole((String) map.get("role"));
		targetNode.setAs((String) map.get("as"));
		return targetNode;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getBy() {
		return by;
	}
	public void setBy(String by) {
		this.by = by;
	}
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}

	public String getAs() {
		return as;
	}

	public void setAs(String as) {
		this.as = as;
	}


}
